package com.zhaodi.mybatisflexdemo.controller;

import com.zhaodi.mybatisflexdemo.entity.Result;
import com.zhaodi.mybatisflexdemo.mapper.JRebelMapper;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author GuoAo
 * @className JRebelTestController
 * @date 2025/6/8
 * @description TODO
 */
@RequestMapping("/jrebel")
@RestController
@RequiredArgsConstructor
@Slf4j
public class JRebelTestController {

    private final JRebelMapper jRebelMapper;

    @GetMapping("/test")
    public Result test(){
        Map<String, Object> test = jRebelMapper.test();
        log.info("test:{}",test);
        return Result.Success(test);
    }
}
